PlaylistListener

Interface for receiving callbacks about events related to the playback lifecycle of individual Source items within a playlist.

This listener allows applications to respond to significant stages in the presentation of content, such as when a source starts playing or when it completes. It can be used for logging, analytics, updating UI elements, or triggering conditional logic based on playback state.

A class interested in processing these playlist events implements this interface. The listener object is then registered with the component responsible for playlist playback (e.g., using an addPlaylistListener method on a playback controller or manager).

See also

com.reveldigital.player.playback.PlaybackManager

// TODO: Replace with actual class if different

Functions

Link copied to clipboard
abstract fun onSourceCompleted(source: Source)
Called when a specific Source within a playlist has finished its playback or display duration.
Link copied to clipboard
abstract fun onSourceStarted(source: Source)
Called when a specific Source within a playlist is about to start or has just started its playback or display.